package process_con;

import java.util.Scanner;
import java.util.concurrent.Callable;

public class Conditional_statements {
	public static void main(String[] args) {
	    /* 判断一个数是奇数还是偶数
		int num = 9;
		if(num%2 == 0)
			System.out.println(num + "这个数是偶数");
		else
			System.out.println(num + "这个数是奇数");

        // 注册密码
        Scanner sc = new Scanner(System.in);
        String curPassword = "0";
        String conPassword = "-1";

        do{
            System.out.println("请输入密码：");
            curPassword =sc.nextLine();
            System.out.println("请再次输入密码");
            conPassword = sc.nextLine();
            if(!curPassword.equals(conPassword)){
                System.out.println("你输入的密码不一致，请重新输入");
            }
        }while(!curPassword.equals(conPassword));
        System.out.println("设置密码成功");

		//百钱买百鸡
	    int cock, hen, chick;
	    for(cock = 1; cock <= 20; cock++){
	        for(hen = 1; hen <= 33; hen++){
	            for(chick = 3; chick <= 99; chick+=3){
	                if(cock*5 + hen*3 + chick/3 == 100){//百钱
	                    if(cock + hen + chick == 100){//百鸡
	                        System.out.println("公鸡数量：" + cock + " 母鸡数量：" + hen + " 小鸡数量：" + chick);

                        }

                    }

                }

            }
        }
		 */
		int i, j, n;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		for(i = 1; i <= 2*n -1; i++){
			for(j = 1; j <= Math.abs(n-1);j++){
				System.out.println(" ");
			}
			for(j = 1;  j <= 2*n-1-2*Math.abs(n-1); j++){
				System.out.println("*");
			}
			System.out.println();
		}

	}
}

